<%@ page language="java" contentType="text/html" import="com.dao.*,com.beans.*,java.util.*" pageEncoding="utf-8"%>
<%String path = request.getContextPath();String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()+ path + "/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"  %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="css/edittable.css"></link>
<link rel="stylesheet" type="text/css" href="css/maintable.css"></link>
<link rel="stylesheet" type="text/css" href="css/validate.css"></link>
<script type="text/javascript" src="js/jquery-1.8.0.js"></script>
</head>

<body>

	<div class="div_title">
		<div class="div_titlename">
			<img src="images/san_jiao.gif"><span>订单管理|订单维护|订单商品列表</span>
		</div>
	</div>
	
	<table class="main_table">
			
			<tr>
				<th>商品名称</th>
				<th>单位</th>
				<th>单价</th>
				<th>购买数量</th>
			</tr>
			<c:forEach var="orderGoods" items="${orderGoodsList}">
				<tr>
					<td>${orderGoods.goodsName}</td>
					<td>${orderGoods.unit}</td>
					<td>${orderGoods.price}</td>
					<td>${orderGoods.saleCount}</td>
				</tr>
			</c:forEach>
		</table>
	
	<div class="div_title">
		<div class="div_titlename">
			<img src="images/san_jiao.gif"><span>订单管理|订单维护|订单详情列表</span>
		</div>
	</div>

		<table class="edit_table">
			<tr>
				<td class="td_info">
					订单号:
				</td>
				<td class="td_input_short">
					<input type="text" class="txtbox" id="orderNo" readonly="readonly" name="orderNo" value="${order.orderNo}"/>
				</td>
				
				<td class="td_info">
					邮费:
				</td>
				<td class="td_input_short">
					<input type="text" class="txtbox" id="postage" readonly="readonly" name="postage" value="${order.postage}"/>
				</td>
			</tr>
			
			<tr>
				<td class="td_info">
					付款方式:
				</td>
				<td class="td_input_short">
					<input type="text" class="txtbox" id="payMethod" readonly="readonly" name="payMethod" value="${order.payMethod}"/>
				</td>
				
				<td class="td_info">
					邮递方式:
				</td>
				<td class="td_input_short">
					<input type="text" class="txtbox" id="postMethod" readonly="readonly" name="postMethod" value="${order.postMethod}"/>
				</td>
			</tr>
			
			<tr>
				<td class="td_info">
					下单日期:
				</td>
				<td class="td_input_short">
					<input type="text" class="txtbox" id="orderDate" readonly="readonly" name="orderDate" value="${order.orderDate}"/>
				</td>
				
				<td class="td_info">
					邮寄地址:
				</td>
				<td class="td_input_short">
					<input type="text" class="txtbox" id="address" readonly="readonly" name="address" value="${order.address}"/>
				</td>
			</tr>
			
			<tr>
				<td class="td_info">
					订单状态:
				</td>
				<td class="td_input_short">
					<input type="text" class="txtbox" id="orderState" readonly="readonly" name="orderState" value="${order.orderState}"/>
				</td>
				
				<td class="td_info">
					发货日期:
				</td>
				<td class="td_input_short">
					<input type="text" class="txtbox" id="sendDate" readonly="readonly" name="sendDate" value="${order.sendDate}"/>
				</td>
			</tr>
			
			<tr>
				<td class="td_info">
					订单金额:
				</td>
				<td class="td_input_short">
					<input type="text" class="txtbox" id="amount" readonly="readonly" name="amount" value="${order.amount}"/>
				</td>
				
				<td class="td_info">
					会员ID:
				</td>
				<td class="td_input_short">
					<input type="text" class="txtbox" id="memberID" readonly="readonly" name="memberID" value="${order.memberName} | ${order.memberLevel}"/>
				</td>
			</tr>
			
			<tr>
				<td class="td_info">
				</td>
				<td class="td_input_short">
					<button  onclick="javascrtpt:window.location.href='OrderServlet.do?flag=manage'">返回</button>
				</td>
			
			</tr>
			
		</table>
	
</body>
</html>
